package com.pp.small.api.user.client;

import com.pp.small.api.user.bo.UserBo;
import com.pp.small.common.base.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户feign客户端
 */
@FeignClient(value = "small-user")
public interface UserFeignClient {

    /**
     * 获取用户数据
     * @param userName
     * @return
     */
    @GetMapping(value = "/feign/user/getUserByUserName")
    BaseResult<UserBo> getUserByUserName(@RequestParam(value = "userName") String userName);

}
